  
import {layer} from '@layui/layer-vue'
class MyProcess {
     
    public  Id:String="";
    constructor() {}
  
    public show( shade:boolean=true){
        if(""==this.Id){
            this.Id= layer.load(0, {shade: shade}) 
        }
    }
    public hide( ){
        if(""!=this.Id){
            layer.close(this.Id);
            this.Id="";
        }
    }
     
}

export default      new MyProcess() 